<template>
  <div class="noMessage">
<!--    <img :src="require('@/assets/pageRigthLogo/nodata.png')" alt="" draggable="false" />-->
    <div class="txt">
      <slot name="empty"><span v-html="_str"></span></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "empty",
  props: {
    str: {
      type: String,
      default: '暂无数据'
    }
  },
  computed: {
    _str() {
      return this.str
    }
  }
}
</script>

<style scoped lang="scss">
.noMessage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img{
    display: block;
    height:60%;
  }
  .txt {
    color:#4e70b6;
    font-size: 24px;
  }
}
</style>
